<?php
/**
 * setup.phtml
 * 
 * @category    Madoqua
 * @package     Install
 * @subpackage  View
 */
?>
<form method="post">
    <h2>Server setup</h2>
    <p>
        In order to set up url rewriting (pretty urls) the installer needs to know
        certain details about your server.
    </p>

    <p>
        <input type="hidden" name="track" value="1" /> 
        
        <label for="host">Your url</label>
        <input type="text" name="host" value="<?php echo $this->host; ?>" />
    </p>
    
    <p>
        <label for="rewritebase">Rewrite base</label>
        <input type="text" name="rewritebase" value="<?php echo $this->rewriteBase; ?>" /> 
    </p>
    
    <p>
        <input type="submit" value="<? echo empty($this->errors) ? 'Continue' : 'Try again' ?>" /> 
    </p>
    
    <?php if(!empty($this->errors)) : //we have form errors :( ?>
    <ul>
        <?php foreach($this->errors as $error) : ?>
        <li><?php echo $error; ?></li>
        <?php endforeach; ?>
    </ul>
    <?php endif; ?>
</form>